package com.yearner.reviewplan.plan.model;

import com.yearner.reviewplan.common.model.AbstractId;
import com.yearner.reviewplan.common.util.UuidGenerator;

import java.util.UUID;

/**
 * @author pengyg
 * @since 2019/10/12
 */
public class PlanId extends AbstractId {
    private static final long serialVersionUID = 210362558764694167L;

    public PlanId(){};

    public PlanId(String id) {
        super(id);
    }
    public static PlanId of(String id) {
        return new PlanId(id);
    }
    public static PlanId newPlanId(String userId) {
        return new PlanId(userId + System.currentTimeMillis());
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
